import { createSSRApp } from "vue";
import App from "./App.vue";
// 引入StatusBar组件
import StatusBar from "./components/status-bar.vue";

import { setupStore } from "@/store";

export function createApp() {
  const app = createSSRApp(App);
  // 全局注册 store
  setupStore(app);
  app.component("StatusBar", StatusBar);

  return {
    app,
  };
}
